package com.opeartion.controller;

import com.opeartion.pojo.StoreManager;
import com.opeartion.service.impl.StoreManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * @author sanshi
 * @version 1.0
 * @data 2020/6/6-15:33
 */


@RestController
@RequestMapping("/storeManager")
public class StoreManagerController {
    @Autowired
    private StoreManagerImpl storeManager;

    @PostMapping("/updateManager")
    public void UpdateManager(List<StoreManager> storeManagers) {

        storeManager.UpdateManager(storeManagers);
    }

    public static void main(String[] args) {

    }
}
